< previous page page_625 next page >

Page 625
Quiz
1. What SQL statement do you use to insert a single data record into a table? What is the basic form of this statement?
2. What SQL statement do you issue to insert multiple data records into a table? What is its format?
3. What SQL statement do you use to modify data that is already in a data table? What is the form of this statement?
4. What SQL statement is used to create new tables that include data from other tables? What is the format of this statement?
5. What SQL statement do you use to delete one or more records from a data table? What is the basic format of this statement?
Exercises
1. Modify the SQL-VB5 script you created in Exercise 1 of Day 13 to add the following records.
Data for the CustomerType Table
Customer Type
Description
INDV
Individual
BUS
BusinessNon-Corporate
CORP
Corporate Entity
Data for the Customers Table
Field
Customer #1
Customer #2
Customer #3
CustomerID
SMITHJ
JONEST
JACKSONT
Name
John Smith
Jones Taxi
Thomas Jackson
CustomerType
INDV
BUS
INDV
Address
160 Main Street
421 Shoe St.
123 Walnut St.
City
Dublin
Milford
Oxford
State
Ohio
Rhode Island
Maine
Zip
45621
03215
05896
Phone
614-555-8975
555-555-5555
444-444-4444
Fax
614-555-5580
555-555-5555
444-444-4444

2. Create a third table that includes data from the CustomerID, City, and State fields of the Customers table. Call your table Localities.
3. Write an SQL statement that would delete the SMITHJ record from the Customers table. What SQL statement would you issue to delete the entire Customers table?

 
< previous page page_625 next page >

If you like this book, buy it!